#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include "Lair.h"

using namespace std;
typedef vector<int> ma;
class Graph
{
public:
	int N;
	vector<ma> Matrix;
	int StartX, StartY;
	int EndX, EndY;
	vector<string> lstRobbery;
	vector<Lair> lstLair;

public:
	void InputLair(ifstream &fi);

	void InputRobbery(ifstream &fi);

	void InputMap(ifstream &fi);

	void Output(ofstream &fo);

	void Output();
	void Rob();
	double CountDistance(int StartPointX, int StartPointY, int EndPointX, int EndPointY);
	string Decrypt(string encrypted);
	void ProcessDecryptLair();
	int GetLairIndex(int id);
};